﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;

namespace Core
{
   public abstract class Order<T>: Skips<T>
    {
        public virtual Order<T> OrderBy<TProperty>(Expression<Func<T, TProperty>> field)
        {
            SetContext.OrderbyExpressionList.Add(Model.EOrderBy.Asc,field);
            return this;
        }

        public virtual Order<T> OrderByDesc<TProperty>(Expression<Func<T, TProperty>> field)
        {
            SetContext.OrderbyExpressionList.Add(Model.EOrderBy.Desc, field);
            return this;
        }
    }
}
